import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
        list:[{
			// // pagePath(需以"/"开头)属性即可
			iconPath: "https://jiazhengv5.xianmaxiong.com/file/uploadPath/2023/01/28/a7b3f499cd561af5054541d936db5448.png",
			selectedIconPath: "https://jiazhengv5.xianmaxiong.com/file/uploadPath/2023/01/28/0ea3c9c42d6a1e266720bcb1ece8eb9e.png",
			text: '首页',
			midButton: false,
			pagePath: '/pages/index/index', // 1.5.6新增，路径需要以"/"开头
		}, {
			iconPath: "https://jiazhengv5.xianmaxiong.com/file/uploadPath/2023/01/28/1d77d7c834e26372f0ebb3a378eb911a.png",
			selectedIconPath: "https://jiazhengv5.xianmaxiong.com/file/uploadPath/2023/01/28/ae93e4c84b00fcd1e77232ddd6403da8.png",
			text: '分类',
			midButton: false,
			pagePath: '/pages/classification/classification', // 1.5.6新增，路径需要以"/"开头
		},
		{
			iconPath: "https://jiazhengv5.xianmaxiong.com/file/uploadPath/2023/01/28/e4850a823450e0cd12f322984106443d.png",
			selectedIconPath: "https://jiazhengv5.xianmaxiong.com/file/uploadPath/2023/01/28/e4850a823450e0cd12f322984106443d.png",
			text: '任务发布',
			midButton: true,
			pagePath: '/pages/renwu/index', // 1.5.6新增，路径需要以"/"开头
		},
		{
			count:0,
			iconPath: "https://jiazhengv5.xianmaxiong.com/file/uploadPath/2023/01/28/18cc92e738d02ad63d7c4e422c26a97a.png",
			selectedIconPath: "https://jiazhengv5.xianmaxiong.com/file/uploadPath/2023/01/28/a4a44b883de3dbd1ce39a6ecd1df33c5.png",
			text: '消息',
			midButton: false,
			pagePath: '/pages/msg/index', // 1.5.6新增，路径需要以"/"开头
		},
		{
			iconPath: "https://jiazhengv5.xianmaxiong.com/file/uploadPath/2023/01/28/0ee301cddba37cf5a0db6ff4f980b7d2.png",
			selectedIconPath: "https://jiazhengv5.xianmaxiong.com/file/uploadPath/2023/01/28/eafe22a399fc88eeaf2b349131295c48.png",
			text: '我的',
			midButton: false,
			pagePath: '/pages/my/index', // 1.5.6新增，路径需要以"/"开头
		},
	]
	},
    mutations: {
		setTagNum(val,num){
			// alert(1)
			val.list[3].count = num
		},
    }
})

export default store
